package xyz.zhzby.cyzx.ucenter.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import xyz.zhzby.cyzx.servicebase.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户兴趣关联表
 * </p>
 *
 * @author zby
 * @since 2021-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("u_user_interest")
@ApiModel(value="UserInterest对象", description="用户兴趣关联表")
public class UserInterest extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "兴趣ID")
    @TableField("interest_id")
    private Long interestId;


}
